﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Attack : MonoBehaviour {
    private Animator _animator;
    private Enemy enemy = new Enemy();

	// Use this for initialization
	void Start () {
        _animator = GameObject.Find("enemy1").GetComponent<Animator>();
        
	}
	
    

	// Update is called once per frame
	void Update () {
		
	}

    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.tag.Equals("enemy"))
        {
            Debug.Log("Dong!");
            
        }
    }
}
